<?php
include "tpl/header.php";
require_once("config.php");
?>

<?php
$private_no = mysql_num_rows(mysql_query("SELECT * FROM filebin_files WHERE album = '".$loc->db_cmp($_GET['album'])."' and status = 'private'"));


$pag = new Paginator;
$info_set = $pag->Paginate("SELECT * FROM filebin_files WHERE album = '".$loc->db_cmp($_GET['album'])."' and status = 'public' ORDER BY date DESC" , "pages" , " , " , "to" , PER_PAGE , "20" , 

"<div style='position:absolute; border:0px dashed red; padding:2px; top:-8px; width:28px; height:30px; left:-110; z-index:9002;'><img style='border-width:0px;' src='images/previous.gif' /></div>" , 

"<div style='position:absolute; top:-1px; left:555px; padding:2px; border:0px dashed black; color:white; width:30px; height:30px; z-index:9002;'><img style='border-width:0px;' src='images/next.gif' /></div>");

$num_rows = $info_set['num_rows'];

echo "<div style='position:absolute; z-index:9000;'>
<div style='position:absolute; z-index:9001; top:0px; font-weight:bold; left:0px; font-size:12px; width:550px;'>Viewing Album: ".substr($loc->db_cmp($_GET['album']),0,55)."...</div>
</div>";

include "image_display.php";



include "tpl/footer.php";
?>